import Storage from "@/utils/storage";
import {ACCESS_TOKEN_KEY} from "@/utils/enums/cache-enum";

export const rulesForm = [{
  label: null, card: [
    {
      label: '处理内容',
      name: 'content',
      type: 'textarea',
      style: {width: '400px'},
      span: 24
    },
    {
      label: '图片上传',
      name: 'enclosure',
      type: 'images',
      span: 24,
      action: '/bms/upload/file',
      headers: {
        token: Storage.get(ACCESS_TOKEN_KEY)
      }
    }
  ]
}];
export const rules = {
  content: [{required: true, message: '不能为空！', trigger: 'blur'}]
}